package stu.info.student.info.mapper;

import org.apache.ibatis.annotations.*;
import stu.info.student.info.entity.Admin;
import stu.info.student.info.entity.Sloc;

import java.util.List;

@Mapper
public interface slocMapper {
    /*添加楼栋*/
    @Insert("insert into sloc values(null)")
    void insert(Sloc sloc);

    /*删除楼栋根据id*/
    @Delete("delete from sloc where snum=#{snum}")
    void deleteById(Long snum);

    /*获得楼栋数据*/
    @Select("select snum from sloc")
    List<Sloc> select();

}
